﻿<%@ WebHandler Language="C#" Class="ListUser" %>

using System;
using System.Web;
using System.Web.SessionState;
using System.Collections.Generic;

using FiveSister.BAL;

public class ListUser : AdminHandler
{

    public override void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        if (IsAuthenticate(context))
        {
            //string email = context.Request.QueryString["emailID"].ToString();
            string result = "";
            User user = new User();
            IList<User> list = user.AllUser();

            result = user.ToJsonList<User>(list);

            context.Response.Write(result);
        }
        
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}